<?php
/**
 * Builds left menu in admin area when editing product
 * 
 * @author Konstantin Shamko <konstantin.shamko@gmail.com> 
 * @version 0.0.1
 * @copyright  Copyright (c) 2009 Konstantin Shamko
 * @package Products Module
 * @license  New BSD License
 *
 */
class Helpers_Products_Admin_ProductsMenu{
	
	/**
	 * Builds left menu in admin area when editing product
	 *
	 * @param integer $product_id
	 */
	public static function leftMenu($product_id){
		
		$menu = array(
			array('title'=>'Edit Product','url'=>'/admin/products/form/product_id/'.$product_id),
			array('title'=>'Product Categories','url'=>'/admin/product2category/index/product_id/'.$product_id),
			array('title'=>'Product Images','url'=>'/admin/productimages/index/product_id/'.$product_id),
		);
		
		$view = Zend_Registry::get('view');
		$view->assign('sidemenu',$menu);		
	}	
}

